
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>4.5内存管理 · zhoufei-iosknowledges</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="zhoufei">
        
        
    
    <link rel="stylesheet" href="../../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-anchors/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-donate/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-anchor-navigation-ex/style/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    

        
    
    
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="../block/5.html" />
    
    
    <link rel="prev" href="4.4.html" />
    

    
        <link rel="shortcut icon" href='../../source/images/favicon.jpg' type="image/x-icon">
    
    
        <link rel="bookmark" href='../../source/images/favicon.jpg' type="image/x-icon">
    
    
        <link rel="apple-touch-icon" href='../../source/images/apple-touch-icon.jpg'>
    
    
        
        <link rel="apple-touch-icon" sizes="120x120" href="../../source/images/apple-touch-icon.jpg">
        
        <link rel="apple-touch-icon" sizes="180x180" href="../../source/images/apple-touch-icon.jpg">
        
    

    <style>
    @media only screen and (max-width: 640px) {
        .book-header .hidden-mobile {
            display: none;
        }
    }
    </style>
    <script>
        window["gitbook-plugin-github-buttons"] = {"buttons":[{"user":"zhou415770319","repo":"iosKnowledges","type":"star","size":"small","count":true}]};
    </script>

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    
    
        
        <li>
            <a href="http://www.feiyum.cn/index/" target="_blank" class="custom-link">我的博客</a>
        </li>
    
    

    
    <li class="divider"></li>
    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../../">
            
                <a href="../../">
            
                    
                    iOS面试题总结
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../ui/ui.html">
            
                <a href="../ui/ui.html">
            
                    
                    1、UI视图相关面试题
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../ui/UITableview.html">
            
                <a href="../ui/UITableview.html">
            
                    
                    1.1UITableview相关面试题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../ui/shujutongbu.html">
            
                <a href="../ui/shujutongbu.html">
            
                    
                    1.2数据源同步
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../ui/shijianchuandi.html">
            
                <a href="../ui/shijianchuandi.html">
            
                    
                    1.3UI事件传递与响应
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="../ui/tuxiangxianshi.html">
            
                <a href="../ui/tuxiangxianshi.html">
            
                    
                    1.4UI图像显示原理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.5" data-path="../ui/kadundiaozheng.html">
            
                <a href="../ui/kadundiaozheng.html">
            
                    
                    1.5UI卡顿掉帧原因
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.6" data-path="../ui/yibuhuizhi.html">
            
                <a href="../ui/yibuhuizhi.html">
            
                    
                    1.6异步绘制原理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.7" data-path="../ui/lipingxuanran.html">
            
                <a href="../ui/lipingxuanran.html">
            
                    
                    1.7离屏渲染
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../oc/2.html">
            
                <a href="../oc/2.html">
            
                    
                    2、OC语言
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../oc/2.1.html">
            
                <a href="../oc/2.1.html">
            
                    
                    2.1OC相关面试题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../oc/2.2.html">
            
                <a href="../oc/2.2.html">
            
                    
                    2.2分类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="../oc/2_4.html">
            
                <a href="../oc/2_4.html">
            
                    
                    2.4扩展
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="../oc/2.5.html">
            
                <a href="../oc/2.5.html">
            
                    
                    2.5代理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5" data-path="../oc/2.6.html">
            
                <a href="../oc/2.6.html">
            
                    
                    2.6通知
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.6" data-path="../oc/2.7.html">
            
                <a href="../oc/2.7.html">
            
                    
                    2.7KVO
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.7" data-path="../oc/2.8.html">
            
                <a href="../oc/2.8.html">
            
                    
                    2.8KVC
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.8" data-path="../oc/2.9.html">
            
                <a href="../oc/2.9.html">
            
                    
                    2.9属性关键字
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../runtime/3.html">
            
                <a href="../runtime/3.html">
            
                    
                    3、Runtime
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../runtime/3.1.html">
            
                <a href="../runtime/3.1.html">
            
                    
                    3.1对象、类对象、元类对象
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../runtime/3.2.html">
            
                <a href="../runtime/3.2.html">
            
                    
                    3.2消息传递机制
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="../runtime/3.3.html">
            
                <a href="../runtime/3.3.html">
            
                    
                    3.3消息转发流程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="../runtime/3.4.html">
            
                <a href="../runtime/3.4.html">
            
                    
                    3.4Method-Swizzling
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="4.html">
            
                <a href="4.html">
            
                    
                    4、内存
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="4.1.html">
            
                <a href="4.1.html">
            
                    
                    4.1引用计数表
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="4.2.html">
            
                <a href="4.2.html">
            
                    
                    4.2弱引用表
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="4.3.html">
            
                <a href="4.3.html">
            
                    
                    4.3ARC、MRC
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.4" data-path="4.4.html">
            
                <a href="4.4.html">
            
                    
                    4.4循环引用
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.5.5" data-path="4.5.html">
            
                <a href="4.5.html">
            
                    
                    4.5内存管理
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../block/5.html">
            
                <a href="../block/5.html">
            
                    
                    5、Block
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../block/5.1.html">
            
                <a href="../block/5.1.html">
            
                    
                    5.1Block本质
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../block/5.2.html">
            
                <a href="../block/5.2.html">
            
                    
                    5.2截获变量特性
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="../block/5.3.html">
            
                <a href="../block/5.3.html">
            
                    
                    5.3内存管理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="../block/5.4.html">
            
                <a href="../block/5.4.html">
            
                    
                    5.4循环引用
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../duoxiancheng/6.html">
            
                <a href="../duoxiancheng/6.html">
            
                    
                    6、多线程
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../duoxiancheng/6.1.html">
            
                <a href="../duoxiancheng/6.1.html">
            
                    
                    6.1GCD、nsoperation
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="../duoxiancheng/6.2.html">
            
                <a href="../duoxiancheng/6.2.html">
            
                    
                    6.2资源共享
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3" data-path="../duoxiancheng/6.3.html">
            
                <a href="../duoxiancheng/6.3.html">
            
                    
                    6.3线程同步
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.4" data-path="../duoxiancheng/6.4.html">
            
                <a href="../duoxiancheng/6.4.html">
            
                    
                    6.4SpinLock等
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../runloop/7.md">
            
                <span>
            
                    
                    7、RunLoop
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="../runloop/7.1.md">
            
                <span>
            
                    
                    7.1事件循环
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="../runloop/7.2.md">
            
                <span>
            
                    
                    7.2用户态
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3" data-path="../runloop/7.3.md">
            
                <span>
            
                    
                    7.3核心态
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.4" data-path="../runloop/7.4.md">
            
                <span>
            
                    
                    7.4常驻线程
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="../network/8.md">
            
                <span>
            
                    
                    8、网络
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.1" data-path="../network/8.1.md">
            
                <span>
            
                    
                    8.1HTTPS
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.2" data-path="../network/8.2.md">
            
                <span>
            
                    
                    8.2对称加密算法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.3" data-path="../network/8.3.md">
            
                <span>
            
                    
                    8.3非对称加密
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4" data-path="../network/8.4.md">
            
                <span>
            
                    
                    8.4DNS解析
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.5" data-path="../network/8.5.md">
            
                <span>
            
                    
                    8.5HTTP、TCP
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../.." >4.5内存管理</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <div id="anchor-navigation-ex-navbar"><i class="fa fa-navicon"></i><ul><ul><li><span class="title-icon "></span><a href="#&#x5185;&#x5B58;&#x7BA1;&#x7406;"><b></b>&#x5185;&#x5B58;&#x7BA1;&#x7406;</a></li></ul></ul></div><a href="#" id="anchorNavigationExGoTop"><i class="fa fa-arrow-up"></i></a><h2 id="&#x5185;&#x5B58;&#x7BA1;&#x7406;"><a name="&#x5185;&#x5B58;&#x7BA1;&#x7406;" class="anchor-navigation-ex-anchor" href="#&#x5185;&#x5B58;&#x7BA1;&#x7406;"><i class="fa fa-link" aria-hidden="true"></i></a><a name="&#x5185;&#x5B58;&#x7BA1;&#x7406;" class="plugin-anchor" href="#&#x5185;&#x5B58;&#x7BA1;&#x7406;"><i class="fa fa-link" aria-hidden="true"></i></a><a href="https://www.jianshu.com/search?q=ios &#x5185;&#x5B58;&#x7BA1;&#x7406;&amp;page=1&amp;type=note" target="_blank">&#x5185;&#x5B58;&#x7BA1;&#x7406;</a></h2>
<p>iOS&#x5185;&#x5B58;&#x7BA1;&#x7406;&#x673A;&#x5236;&#x7684;&#x539F;&#x7406;&#x662F;&#x5F15;&#x7528;&#x8BA1;&#x6570;&#xFF0C;&#x5F15;&#x7528;&#x8BA1;&#x6570;&#x7B80;&#x5355;&#x6765;&#x8BF4;&#x5C31;&#x662F;&#x7EDF;&#x8BA1;&#x4E00;&#x5757;&#x5185;&#x5B58;&#x7684;&#x6240;&#x6709;&#x6743;&#xFF0C;&#x5F53;&#x8FD9;&#x5757;&#x5185;&#x5B58;&#x88AB;&#x521B;&#x5EFA;&#x51FA;&#x6765;&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x5B83;&#x7684;&#x5F15;&#x7528;&#x8BA1;&#x6570;&#x4ECE;0&#x589E;&#x52A0;&#x5230;1&#xFF0C;&#x8868;&#x793A;&#x6709;&#x4E00;&#x4E2A;&#x5BF9;&#x8C61;&#x6216;&#x6307;&#x9488;&#x6301;&#x6709;&#x8FD9;&#x5757;&#x5185;&#x5B58;&#xFF0C;&#x62E5;&#x6709;&#x8FD9;&#x5757;&#x5185;&#x5B58;&#x7684;&#x6240;&#x6709;&#x6743;&#xFF0C;&#x5982;&#x679C;&#x8FD9;&#x65F6;&#x5019;&#x6709;&#x53E6;&#x5916;&#x4E00;&#x4E2A;&#x5BF9;&#x8C61;&#x6216;&#x6307;&#x9488;&#x6307;&#x5411;&#x8FD9;&#x5757;&#x5185;&#x5B58;&#xFF0C;&#x90A3;&#x4E48;&#x4E3A;&#x4E86;&#x8868;&#x793A;&#x8FD9;&#x4E2A;&#x540E;&#x6765;&#x7684;&#x5BF9;&#x8C61;&#x6216;&#x6307;&#x9488;&#x5BF9;&#x8FD9;&#x5757;&#x5185;&#x5B58;&#x7684;&#x6240;&#x6709;&#x6743;&#xFF0C;&#x5F15;&#x7528;&#x8BA1;&#x6570;&#x52A0;1&#x53D8;&#x4E3A;2&#xFF0C;&#x4E4B;&#x540E;&#x82E5;&#x6709;&#x4E00;&#x4E2A;&#x5BF9;&#x8C61;&#x6216;&#x6307;&#x9488;&#x4E0D;&#x518D;&#x6307;&#x5411;&#x8FD9;&#x5757;&#x5185;&#x5B58;&#x65F6;&#xFF0C;&#x5F15;&#x7528;&#x8BA1;&#x6570;&#x51CF;1&#xFF0C;&#x8868;&#x793A;&#x8FD9;&#x4E2A;&#x5BF9;&#x8C61;&#x6216;&#x6307;&#x9488;&#x4E0D;&#x518D;&#x62E5;&#x6709;&#x8FD9;&#x5757;&#x5185;&#x5B58;&#x7684;&#x6240;&#x6709;&#x6743;&#xFF0C;&#x5F53;&#x4E00;&#x5757;&#x5185;&#x5B58;&#x7684;&#x5F15;&#x7528;&#x8BA1;&#x6570;&#x53D8;&#x4E3A;0&#xFF0C;&#x8868;&#x793A;&#x6CA1;&#x6709;&#x4EFB;&#x4F55;&#x5BF9;&#x8C61;&#x6216;&#x6307;&#x9488;&#x6301;&#x6709;&#x8FD9;&#x5757;&#x5185;&#x5B58;&#xFF0C;&#x7CFB;&#x7EDF;&#x4FBF;&#x4F1A;&#x7ACB;&#x523B;&#x91CA;&#x653E;&#x6389;&#x8FD9;&#x5757;&#x5185;&#x5B58;&#x3002;</p>
<p>&#x5176;&#x4E2D;&#x5728;&#x5F00;&#x53D1;&#x65F6;&#x5F15;&#x7528;&#x8BA1;&#x6570;&#x53C8;&#x5206;&#x4E3A;ARC&#xFF08;&#x81EA;&#x52A8;&#x5185;&#x5B58;&#x7BA1;&#x7406;&#xFF09;&#x548C;MRC&#xFF08;&#x624B;&#x52A8;&#x5185;&#x5B58;&#x7BA1;&#x7406;&#xFF09;&#x3002;ARC&#x7684;&#x672C;&#x8D28;&#x5176;&#x5B9E;&#x5C31;&#x662F;MRC&#xFF0C;&#x53EA;&#x4E0D;&#x8FC7;&#x662F;&#x7CFB;&#x7EDF;&#x5E2E;&#x52A9;&#x5F00;&#x53D1;&#x8005;&#x7BA1;&#x7406;&#x5DF2;&#x521B;&#x5EFA;&#x7684;&#x5BF9;&#x8C61;&#x6216;&#x5185;&#x5B58;&#x7A7A;&#x95F4;&#xFF0C;&#x81EA;&#x52A8;&#x5728;&#x7CFB;&#x7EDF;&#x8BA4;&#x4E3A;&#x5408;&#x9002;&#x7684;&#x65F6;&#x95F4;&#x548C;&#x5730;&#x70B9;&#x91CA;&#x653E;&#x6389;&#x5DF2;&#x7ECF;&#x5931;&#x53BB;&#x4F5C;&#x7528;&#x7684;&#x5185;&#x5B58;&#x7A7A;&#x95F4;&#xFF0C;&#x539F;&#x7406;&#x662F;&#x4E00;&#x6837;&#x7684;&#x3002;&#x867D;&#x7136;ARC&#x64CD;&#x4F5C;&#x8D77;&#x6765;&#x5F88;&#x65B9;&#x4FBF;&#xFF0C;&#x4E0D;&#x4F46;&#x51CF;&#x5C11;&#x4E86;&#x4EE3;&#x7801;&#x91CF;&#xFF0C;&#x800C;&#x4E14;&#x964D;&#x4F4E;&#x4E86;&#x5185;&#x5B58;&#x51FA;&#x9519;&#x7684;&#x6982;&#x7387;&#xFF0C;&#x4F46;&#x56E0;&#x4E3A;ARC&#x4E0D;&#x4E00;&#x5B9A;&#x4F1A;&#x53CA;&#x65F6;&#x91CA;&#x653E;&#xFF0C;&#x6240;&#x4EE5;&#x7A0B;&#x5E8F;&#x6709;&#x65F6;&#x5019;&#x53EF;&#x80FD;&#x4F1A;&#x5360;&#x7528;&#x5185;&#x5B58;&#x8F83;&#x5927;&#x3002;&#x800C;MRC&#x82E5;&#x505A;&#x5F97;&#x597D;&#xFF0C;&#x901A;&#x8FC7;&#x624B;&#x52A8;&#x7BA1;&#x7406;&#xFF0C;&#x53CA;&#x65F6;&#x91CA;&#x653E;&#x6389;&#x4E0D;&#x9700;&#x8981;&#x7684;&#x5185;&#x5B58;&#x7A7A;&#x95F4;&#xFF0C;&#x4FBF;&#x53EF;&#x4FDD;&#x8BC1;&#x7A0B;&#x5E8F;&#x957F;&#x65F6;&#x95F4;&#x8FD0;&#x884C;&#x5728;&#x826F;&#x597D;&#x72B6;&#x6001;&#x4E0A;&#x3002;</p>
<p>&#x5728;MRC&#x4E2D;&#x4F1A;&#x5F15;&#x8D77;&#x5F15;&#x7528;&#x8BA1;&#x6570;&#x53D8;&#x5316;&#x7684;&#x5173;&#x952E;&#x5B57;&#x6709;&#xFF1A;alloc&#xFF0C;retain&#xFF0C;copy&#xFF0C;release&#xFF0C;autorelease&#x3002;&#xFF08;strong&#x5173;&#x952E;&#x5B57;&#x53EA;&#x7528;&#x4E8E;ARC&#xFF0C;&#x4F5C;&#x7528;&#x7B49;&#x540C;&#x4E8E;retain&#xFF09;</p>
<p>alloc&#xFF1A;&#x5F53;&#x4E00;&#x4E2A;&#x7C7B;&#x7684;&#x5BF9;&#x8C61;&#x521B;&#x5EFA;&#xFF0C;&#x9700;&#x8981;&#x5F00;&#x8F9F;&#x5185;&#x5B58;&#x7A7A;&#x95F4;&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x4F1A;&#x4F7F;&#x7528;alloc&#xFF0C;alloc&#x662F;&#x4E00;&#x4E2A;&#x7C7B;&#x65B9;&#x6CD5;&#xFF0C;&#x53EA;&#x80FD;&#x7528;&#x7C7B;&#x8C03;&#x7528;&#xFF0C;&#x5B83;&#x7684;&#x4F5C;&#x7528;&#x662F;&#x5F00;&#x8F9F;&#x4E00;&#x5757;&#x65B0;&#x7684;&#x5185;&#x5B58;&#x7A7A;&#x95F4;&#xFF0C;&#x5E76;&#x4F7F;&#x8FD9;&#x5757;&#x5185;&#x5B58;&#x7684;&#x5F15;&#x7528;&#x8BA1;&#x6570;&#x4ECE;0&#x589E;&#x52A0;&#x5230;1&#xFF0C;&#x6CE8;&#x610F;&#xFF0C;&#x662F;&#x65B0;&#x7684;&#x5185;&#x5B58;&#x7A7A;&#x95F4;&#xFF0C;&#x6BCF;&#x6B21;&#x7528;&#x7C7B;alloc&#x51FA;&#x6765;&#x7684;&#x90FD;&#x662F;&#x4E00;&#x5757;&#x65B0;&#x7684;&#x5185;&#x5B58;&#x7A7A;&#x95F4;&#xFF0C;&#x4E0E;&#x4E0A;&#x4E00;&#x6B21;alloc&#x51FA;&#x6765;&#x7684;&#x5185;&#x5B58;&#x7A7A;&#x95F4;&#x6CA1;&#x6709;&#x5FC5;&#x7136;&#x8054;&#x7CFB;&#xFF0C;&#x800C;&#x4E14;&#x4E0A;&#x4E00;&#x6B21;alloc&#x51FA;&#x6765;&#x7684;&#x5185;&#x5B58;&#x7A7A;&#x95F4;&#x4ECD;&#x7136;&#x5B58;&#x5728;&#xFF0C;&#x4E0D;&#x4F1A;&#x88AB;&#x91CA;&#x653E;&#x3002;</p>
<p>retain&#xFF1A;retain&#x662F;&#x4E00;&#x4E2A;&#x5B9E;&#x4F8B;&#x65B9;&#x6CD5;&#xFF0C;&#x53EA;&#x80FD;&#x7531;&#x5BF9;&#x8C61;&#x8C03;&#x7528;&#xFF0C;&#x5B83;&#x7684;&#x4F5C;&#x7528;&#x662F;&#x4F7F;&#x8FD9;&#x4E2A;&#x5BF9;&#x8C61;&#x7684;&#x5185;&#x5B58;&#x7A7A;&#x95F4;&#x7684;&#x5F15;&#x7528;&#x8BA1;&#x6570;&#x52A0;1&#xFF0C;&#x5E76;&#x4E0D;&#x4F1A;&#x65B0;&#x5F00;&#x8F9F;&#x4E00;&#x5757;&#x5185;&#x5B58;&#x7A7A;&#x95F4;&#xFF0C;&#x901A;&#x5E38;&#x4E8E;&#x8D4B;&#x503C;&#x662F;&#x8C03;&#x7528;&#xFF0C;&#x5982;&#xFF1A;</p>
<p>&#x5BF9;&#x8C61;2=[&#x5BF9;&#x8C61;1 retain]&#xFF1B;&#x8868;&#x793A;&#x5BF9;&#x8C61;2&#x540C;&#x6837;&#x62E5;&#x6709;&#x8FD9;&#x5757;&#x5185;&#x5B58;&#x7684;&#x6240;&#x6709;&#x6743;&#x3002;&#x82E5;&#x53EA;&#x662F;&#x7B80;&#x5355;&#x5730;&#x8D4B;&#x503C;&#xFF0C;&#x5982;&#xFF1A;&#x5BF9;&#x8C61;2=&#x5BF9;&#x8C61;1&#xFF1B;&#x90A3;&#x4E48;&#x5F53;&#x5BF9;&#x8C61;1&#x7684;&#x5185;&#x5B58;&#x7A7A;&#x95F4;&#x88AB;&#x91CA;&#x653E;&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x5BF9;&#x8C61;2&#x4FBF;&#x4F1A;&#x6210;&#x4E3A;&#x91CE;&#x6307;&#x9488;&#xFF0C;&#x518D;&#x5BF9;&#x5BF9;&#x8C61;2&#x8FDB;&#x884C;&#x64CD;&#x4F5C;&#x4FBF;&#x4F1A;&#x9020;&#x6210;&#x5185;&#x5B58;&#x9519;&#x8BEF;&#x3002;</p>
<p>copy&#xFF1A;copy&#x540C;&#x6837;&#x662F;&#x4E00;&#x4E2A;&#x5B9E;&#x4F8B;&#x65B9;&#x6CD5;&#xFF0C;&#x53EA;&#x80FD;&#x7531;&#x5BF9;&#x8C61;&#x8C03;&#x7528;&#xFF0C;&#x8FD4;&#x56DE;&#x4E00;&#x4E2A;&#x65B0;&#x7684;&#x5BF9;&#x8C61;&#xFF0C;&#x5B83;&#x7684;&#x4F5C;&#x7528;&#x662F;&#x590D;&#x5236;&#x4E00;&#x4E2A;&#x5BF9;&#x8C61;&#x5230;&#x4E00;&#x5757;&#x65B0;&#x7684;&#x5185;&#x5B58;&#x7A7A;&#x95F4;&#x4E0A;&#xFF0C;&#x65E7;&#x5185;&#x5B58;&#x7A7A;&#x95F4;&#x7684;&#x5F15;&#x7528;&#x8BA1;&#x6570;&#x4E0D;&#x4F1A;&#x53D8;&#x5316;&#xFF0C;&#x65B0;&#x7684;&#x5185;&#x5B58;&#x7A7A;&#x95F4;&#x7684;&#x5F15;&#x7528;&#x8BA1;&#x6570;&#x4ECE;0&#x589E;&#x52A0;&#x5230;1&#xFF0C;&#x4E5F;&#x5C31;&#x662F;&#x8BF4;&#xFF0C;&#x867D;&#x7136;&#x5185;&#x5BB9;&#x4E00;&#x6837;&#xFF0C;&#x4F46;&#x5B9E;&#x8D28;&#x4E0A;&#x662F;&#x4E24;&#x5757;&#x5185;&#x5B58;&#xFF0C;&#x76F8;&#x5F53;&#x4E8E;&#x514B;&#x9686;&#xFF0C;&#x4E00;&#x4E2A;&#x53D8;&#x6210;&#x4E24;&#x4E2A;&#x3002;&#x5176;&#x4E2D;copy&#x53C8;&#x5206;&#x4E3A;&#x6D45;&#x62F7;&#x8D1D;&#x3001;&#x6DF1;&#x62F7;&#x8D1D;&#x548C;&#x771F;&#x6B63;&#x7684;&#x6DF1;&#x62F7;&#x8D1D;&#xFF0C;&#x6D45;&#x62F7;&#x8D1D;&#x53EA;&#x662F;&#x62F7;&#x8D1D;&#x5730;&#x5740;&#x4E0E;retain&#x7B49;&#x540C;&#xFF1B;&#x6DF1;&#x62F7;&#x8D1D;&#x662F;&#x62F7;&#x8D1D;&#x5185;&#x5BB9;&#xFF0C;&#x4F1A;&#x65B0;&#x5F00;&#x8F9F;&#x65B0;&#x5185;&#x5B58;&#xFF0C;&#x4E0E;retain&#x4E0D;&#x4E00;&#x6837;&#xFF1B;&#x771F;&#x6B63;&#x7684;&#x6DF1;&#x62F7;&#x8D1D;&#x662F;&#x5BF9;&#x4E8E;&#x5BB9;&#x5668;&#x7C7B;&#x6765;&#x8BF4;&#x7684;&#xFF0C;&#x5982;&#x6570;&#x7EC4;&#x7C7B;&#x3001;&#x5B57;&#x5178;&#x7C7B;&#x548C;&#x96C6;&#x5408;&#x7C7B;&#xFF08;&#x5305;&#x62EC;&#x53EF;&#x53D8;&#x548C;&#x4E0D;&#x53EF;&#x53D8;&#xFF09;&#xFF0C;&#x5047;&#x8BBE;&#x6709;&#x4E00;&#x4E2A;&#x6570;&#x7EC4;&#x7C7B;&#x5BF9;&#x8C61;&#xFF0C;&#x666E;&#x901A;&#x7684;&#x6DF1;&#x62F7;&#x8D1D;&#x4F1A;&#x5F00;&#x8F9F;&#x4E00;&#x5757;&#x65B0;&#x5185;&#x5B58;&#x5B58;&#x653E;&#x8FD9;&#x4E2A;&#x5BF9;&#x8C61;&#xFF0C;&#x4F46;&#x8FD9;&#x4E2A;&#x6570;&#x7EC4;&#x5BF9;&#x8C61;&#x91CC;&#x9762;&#x7684;&#x5404;&#x4E2A;&#x5143;&#x7D20;&#x7684;&#x5730;&#x5740;&#x5374;&#x6CA1;&#x6709;&#x6539;&#x53D8;&#x4E5F;&#x5C31;&#x662F;&#x8BF4;&#x6570;&#x7EC4;&#x5143;&#x7D20;&#x53EA;&#x662F;&#x8FDB;&#x884C;&#x4E86;retain&#x6216;&#x8005;&#x6D45;&#x62F7;&#x8D1D;&#x800C;&#x5DF2;&#xFF0C;&#x5E76;&#x6CA1;&#x6709;&#x521B;&#x5EFA;&#x65B0;&#x7684;&#x5185;&#x5B58;&#x7A7A;&#x95F4;&#xFF0C;&#x800C;&#x771F;&#x6B63;&#x7684;&#x6DF1;&#x62F7;&#x8D1D;&#xFF0C;&#x4E0D;&#x4F46;&#x6570;&#x7EC4;&#x5BF9;&#x8C61;&#x672C;&#x8EAB;&#x8FDB;&#x884C;&#x4E86;&#x6DF1;&#x62F7;&#x8D1D;&#xFF0C;&#x8FDE;&#x6570;&#x7EC4;&#x5143;&#x7D20;&#x90FD;&#x8FDB;&#x884C;&#x4E86;&#x6DF1;&#x62F7;&#x8D1D;&#xFF0C;&#x5373;&#x4E3A;&#x5404;&#x4E2A;&#x6570;&#x7EC4;&#x5143;&#x7D20;&#x5F00;&#x8F9F;&#x4E86;&#x65B0;&#x7684;&#x5185;&#x5B58;&#x7A7A;&#x95F4;&#x3002;</p>
<p>release&#xFF1A;release&#x662F;&#x4E00;&#x4E2A;&#x5B9E;&#x4F8B;&#x65B9;&#x6CD5;&#xFF0C;&#x540C;&#x6837;&#x53EA;&#x80FD;&#x7531;&#x5BF9;&#x8C61;&#x8C03;&#x7528;&#xFF0C;&#x5B83;&#x7684;&#x4F5C;&#x7528;&#x662F;&#x4F7F;&#x5BF9;&#x8C61;&#x7684;&#x5185;&#x5B58;&#x7A7A;&#x95F4;&#x7684;&#x5F15;&#x7528;&#x8BA1;&#x6570;&#x51CF;1&#xFF0C;&#x82E5;&#x5F15;&#x7528;&#x8BA1;&#x6570;&#x53D8;&#x4E3A;0&#x5219;&#x7CFB;&#x7EDF;&#x4F1A;&#x7ACB;&#x523B;&#x91CA;&#x653E;&#x6389;&#x8FD9;&#x5757;&#x5185;&#x5B58;&#x3002;&#x5982;&#x679C;&#x5F15;&#x7528;&#x8BA1;&#x6570;&#x4E3A;0&#x7684;&#x57FA;&#x7840;&#x4E0A;&#x518D;&#x8C03;&#x7528;release&#xFF0C;&#x4FBF;&#x4F1A;&#x9020;&#x6210;&#x8FC7;&#x5EA6;&#x91CA;&#x653E;&#xFF0C;&#x4F7F;&#x5185;&#x5B58;&#x5D29;&#x6E83;&#xFF1B;</p>
<p>autorelease&#xFF1A;autorelease&#x662F;&#x4E00;&#x4E2A;&#x5B9E;&#x4F8B;&#x65B9;&#x6CD5;&#xFF0C;&#x540C;&#x6837;&#x53EA;&#x80FD;&#x7531;&#x5BF9;&#x8C61;&#x8C03;&#x7528;&#xFF0C;&#x5B83;&#x7684;&#x4F5C;&#x7528;&#x4E8E;release&#x7C7B;&#x4F3C;&#xFF0C;&#x4F46;&#x4E0D;&#x662F;&#x7ACB;&#x523B;&#x51CF;1&#xFF0C;&#x76F8;&#x5F53;&#x4E8E;&#x4E00;&#x4E2A;&#x5EF6;&#x8FDF;&#x7684;release&#xFF0C;&#x901A;&#x5E38;&#x7528;&#x4E8E;&#x65B9;&#x6CD5;&#x8FD4;&#x56DE;&#x503C;&#x7684;&#x91CA;&#x653E;&#xFF0C;&#x5982;&#x4FBF;&#x5229;&#x6784;&#x9020;&#x5668;&#x3002;autorelease&#x4F1A;&#x5728;&#x7A0B;&#x5E8F;&#x8D70;&#x51FA;&#x81EA;&#x52A8;&#x91CA;&#x653E;&#x6C60;&#x65F6;&#x6267;&#x884C;&#xFF0C;&#x901A;&#x5E38;&#x7CFB;&#x7EDF;&#x4F1A;&#x81EA;&#x52A8;&#x751F;&#x6210;&#x81EA;&#x52A8;&#x91CA;&#x653E;&#x6C60;&#xFF08;&#x5373;&#x4F7F;&#x662F;MRC&#x4E0B;&#xFF09;&#xFF0C;&#x4E5F;&#x53EF;&#x4EE5;&#x81EA;&#x5DF1;&#x8BBE;&#x5B9A;&#x81EA;&#x52A8;&#x91CA;&#x653E;&#x6C60;&#xFF0C;&#x5982;&#xFF1A;</p>
<pre><code>@autoreleasepool{ obj= [[NSObject alloc]init]; [obj autorelease]; }
</code></pre><p>&#x5F53;&#x7A0B;&#x5E8F;&#x8D70;&#x51FA;&#x201C;}&#x201D;&#x65F6;obj&#x7684;&#x5F15;&#x7528;&#x8BA1;&#x6570;&#x5C31;&#x4F1A;&#x51CF;1.</p>
<p>&#x9664;&#x4E86;&#x4EE5;&#x4E0A;&#x6240;&#x8FF0;&#x7684;&#x5173;&#x952E;&#x5B57;&#xFF0C;&#x8FD8;&#x6709;&#x4E00;&#x4E9B;&#x65B9;&#x6CD5;&#x4F1A;&#x5F15;&#x8D77;&#x5F15;&#x7528;&#x8BA1;&#x6570;&#x7684;&#x53D8;&#x5316;&#xFF0C;&#x5982;UI&#x4E2D;&#x7236;&#x89C6;&#x56FE;&#x6DFB;&#x52A0;&#x3001;&#x79FB;&#x9664;&#x5B50;&#x89C6;&#x56FE;&#xFF0C;&#x5BFC;&#x822A;&#x63A7;&#x5236;&#x5668;&#x6216;&#x89C6;&#x56FE;&#x63A7;&#x5236;&#x5668;&#x63A8;&#x51FA;&#x65B0;&#x7684;&#x89C6;&#x56FE;&#x63A7;&#x5236;&#x5668;&#x4EE5;&#x53CA;&#x8FD4;&#x56DE;&#xFF0C;&#x5BB9;&#x5668;&#x7C7B;&#xFF08;&#x6570;&#x7EC4;&#x3001;&#x5B57;&#x5178;&#x548C;&#x96C6;&#x5408;&#xFF09;&#x6DFB;&#x52A0;&#x548C;&#x79FB;&#x9664;&#x5143;&#x7D20;&#x3002;</p>
<p>&#x5F53;&#x5B50;&#x89C6;&#x56FE;&#x6DFB;&#x52A0;&#x5230;&#x7236;&#x89C6;&#x56FE;&#x4E0A;&#x65F6;&#xFF0C;&#x5B50;&#x89C6;&#x56FE;&#x7684;&#x5F15;&#x7528;&#x8BA1;&#x6570;&#x52A0;1&#xFF0C;&#x79FB;&#x9664;&#x65F6;&#x5F15;&#x7528;&#x8BA1;&#x6570;&#x51CF;1&#xFF0C;&#x82E5;&#x7236;&#x89C6;&#x56FE;&#x5F15;&#x7528;&#x8BA1;&#x6570;&#x53D8;&#x4E3A;0&#x5185;&#x5B58;&#x88AB;&#x91CA;&#x653E;&#xFF0C;&#x5176;&#x6240;&#x6709;&#x7684;&#x5B50;&#x89C6;&#x56FE;&#x90FD;&#x4F1A;&#x88AB;release&#x4E00;&#x6B21;&#xFF0C;&#x5373;&#x5F15;&#x7528;&#x8BA1;&#x6570;&#x51CF;1&#xFF0C;&#x539F;&#x5219;&#x4E0A;&#x53EA;&#x6709;&#x8FD9;&#x4E09;&#x79CD;&#x60C5;&#x51B5;&#x5B50;&#x89C6;&#x56FE;&#x7684;&#x5F15;&#x7528;&#x8BA1;&#x6570;&#x4F1A;&#x53D1;&#x751F;&#x53D8;&#x5316;&#xFF0C;&#x5176;&#x4ED6;&#x5982;&#x7236;&#x89C6;&#x56FE;&#x5F15;&#x7528;&#x8BA1;&#x6570;&#x7684;&#x52A0;&#x51CF;&#x90FD;&#x4E0D;&#x4F1A;&#x5F71;&#x54CD;&#x5230;&#x5B50;&#x89C6;&#x56FE;&#x3002;</p>
<p>&#x5BB9;&#x5668;&#x7C7B;&#x7684;&#x60C5;&#x51B5;&#x4E0E;&#x89C6;&#x56FE;&#x7C7B;&#x4F3C;&#xFF0C;&#x6DFB;&#x52A0;&#x5143;&#x7D20;&#xFF0C;&#x8BE5;&#x5143;&#x7D20;&#x5F15;&#x7528;&#x8BA1;&#x6570;&#x52A0;1&#xFF0C;&#x79FB;&#x9664;&#x5143;&#x7D20;&#xFF0C;&#x8BE5;&#x5143;&#x7D20;&#x5F15;&#x7528;&#x8BA1;&#x6570;&#x51CF;1&#xFF0C;&#x5BB9;&#x5668;&#x5F15;&#x7528;&#x8BA1;&#x6570;&#x53D8;&#x4E3A;0&#x6240;&#x5360;&#x7528;&#x5185;&#x5B58;&#x88AB;&#x91CA;&#x653E;&#xFF0C;&#x5BB9;&#x5668;&#x6240;&#x6709;&#x5143;&#x7D20;release&#xFF0C;&#x5F15;&#x7528;&#x8BA1;&#x6570;&#x51CF;1&#xFF0C;&#x5176;&#x4ED6;&#x60C5;&#x51B5;&#x4E0B;&#x5BB9;&#x5668;&#x672C;&#x8EAB;&#x7684;&#x5F15;&#x7528;&#x8BA1;&#x6570;&#x53D8;&#x5316;&#x4E0D;&#x4F1A;&#x5F71;&#x54CD;&#x5230;&#x5BB9;&#x5668;&#x5185;&#x5143;&#x7D20;&#x7684;&#x5F15;&#x7528;&#x8BA1;&#x6570;&#x53D8;&#x5316;&#x3002;</p>
<p>&#x5BFC;&#x822A;&#x63A7;&#x5236;&#x5668;&#x6216;&#x89C6;&#x56FE;&#x63A7;&#x5236;&#x5668;&#x63A8;&#x51FA;&#x65B0;&#x7684;&#x89C6;&#x56FE;&#x63A7;&#x5236;&#x5668;&#x4F1A;&#x4F7F;&#x88AB;&#x63A8;&#x51FA;&#x7684;&#x89C6;&#x56FE;&#x63A7;&#x5236;&#x5668;&#x7684;&#x5F15;&#x7528;&#x8BA1;&#x6570;&#x52A0;1&#xFF0C;&#x8BE5;&#x89C6;&#x56FE;&#x63A7;&#x5236;&#x5668;&#x8FD4;&#x56DE;&#x7684;&#x65F6;&#x5019;&#x5F15;&#x7528;&#x8BA1;&#x6570;&#x51CF;1&#xFF0C;&#x5177;&#x4F53;&#x65B9;&#x6CD5;&#x5982;&#x4E0B;&#xFF1A;</p>
<p>&#x5BFC;&#x822A;&#x63A7;&#x5236;&#x5668;&#x63A8;&#x51FA;&#x89C6;&#x56FE;&#x63A7;&#x5236;&#x5668;&#x8C03;&#x7528;&#x65B9;&#x6CD5;&#xFF1A;- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated;</p>
<p>&#x8FD4;&#x56DE;&#x65F6;&#x540C;&#x6837;&#x7528;&#x5BFC;&#x822A;&#x63A7;&#x5236;&#x5668;&#x8C03;&#x7528;&#x65B9;&#x6CD5;&#xFF1A;- (UIViewController *)popViewControllerAnimated:(BOOL)animated;</p>
<p>&#x89C6;&#x56FE;&#x63A7;&#x5236;&#x5668;&#x63A8;&#x51FA;&#x89C6;&#x56FE;&#x63A7;&#x5236;&#x5668;&#x8C03;&#x7528;&#x65B9;&#x6CD5;&#xFF1A;- (void)presentViewController:(UIViewController *)viewControllerToPresent animated: (BOOL)flag completion:(void (^)(void))completion</p>
<p>&#x8FD4;&#x56DE;&#x65F6;&#x88AB;&#x63A8;&#x51FA;&#x7684;&#x89C6;&#x56FE;&#x63A7;&#x5236;&#x5668;&#x8C03;&#x7528;&#x65B9;&#x6CD5;&#xFF1A;- (void)dismissViewControllerAnimated: (BOOL)flag completion: (void (^)(void))completion</p>
<p>&#x5E94;&#x6CE8;&#x610F;&#xFF1A;&#x5F53;&#x4E00;&#x4E2A;&#x5BF9;&#x8C61;&#x7684;&#x5F15;&#x7528;&#x8BA1;&#x6570;&#x53D8;&#x4E3A;0&#x5360;&#x7528;&#x5185;&#x5B58;&#x88AB;&#x91CA;&#x653E;&#x65F6;&#xFF0C;&#x4F1A;&#x8C03;&#x7528;- (void)dealloc&#x65B9;&#x6CD5;&#xFF0C;&#x6240;&#x4EE5;&#x5982;&#x679C;&#x5728;MRC&#x4E0B;&#x81EA;&#x5B9A;&#x4E49;&#x7C7B;&#xFF0C;&#x5FC5;&#x987B;&#x5728;&#x8BE5;&#x65B9;&#x6CD5;&#x91CC;&#x5C06;&#x8BE5;&#x7C7B;&#x4E2D;&#x5C5E;&#x6027;&#x5173;&#x952E;&#x5B57;&#x8BBE;&#x7F6E;&#x4E3A;retain&#x6216;copy&#x7684;&#x5C5E;&#x6027;release&#x4E00;&#x6B21;&#xFF0C;&#x4EE5;&#x514D;&#x9020;&#x6210;&#x5185;&#x5B58;&#x6CC4;&#x9732;&#xFF0C;&#x91CD;&#x5199;&#x65B9;&#x6CD5;&#x4E0D;&#x8981;&#x5FD8;&#x8BB0;&#x5728;&#x7B2C;&#x4E00;&#x884C;&#x6DFB;&#x52A0;[super dealloc]&#xFF1B;&#x3002;</p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="4.4.html" class="navigation navigation-prev " aria-label="Previous page: 4.4循环引用">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="../block/5.html" class="navigation navigation-next " aria-label="Next page: 5、Block">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"4.5内存管理","level":"1.5.5","depth":2,"next":{"title":"5、Block","level":"1.6","depth":1,"path":"md/block/5.md","ref":"md/block/5.md","articles":[{"title":"5.1Block本质","level":"1.6.1","depth":2,"path":"md/block/5.1.md","ref":"md/block/5.1.md","articles":[]},{"title":"5.2截获变量特性","level":"1.6.2","depth":2,"path":"md/block/5.2.md","ref":"md/block/5.2.md","articles":[]},{"title":"5.3内存管理","level":"1.6.3","depth":2,"path":"md/block/5.3.md","ref":"md/block/5.3.md","articles":[]},{"title":"5.4循环引用","level":"1.6.4","depth":2,"path":"md/block/5.4.md","ref":"md/block/5.4.md","articles":[]}]},"previous":{"title":"4.4循环引用","level":"1.5.4","depth":2,"path":"md/neicun/4.4.md","ref":"md/neicun/4.4.md","articles":[]},"dir":"ltr"},"config":{"plugins":["-sharing","splitter","expandable-chapters-small","anchors","github","github-buttons","donate","sharing-plus","anchor-navigation-ex","favicon","livereload"],"styles":{"website":"./styles/website.css","ebook":"styles/ebook.css","pdf":"styles/pdf.css","mobi":"styles/mobi.css","epub":"styles/epub.css"},"pluginsConfig":{"github":{"url":"https://github.com/zhou415770319"},"livereload":{},"splitter":{},"search":{},"sharing-plus":{"qq":false,"all":["facebook","google","twitter","instapaper","linkedin","pocket","stumbleupon"],"douban":false,"facebook":true,"weibo":false,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":true,"messenger":false,"line":false,"vk":false,"pocket":true,"google":false,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":false},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"donate":{"alipay":"../../img/alipay.JPG","alipayText":" ","button":"赞赏","title":"","wechat":"","wechatText":"微信打赏"},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"anchor-navigation-ex":{"associatedWithSummary":true,"float":{"floatIcon":"fa fa-navicon","level1Icon":"","level2Icon":"","level3Icon":"","showLevelIcon":false},"mode":"float","multipleH1":true,"pageTop":{"level1Icon":"","level2Icon":"","level3Icon":"","showLevelIcon":false},"printLog":false,"showGoTop":true,"showLevel":false},"favicon":{"shortcut":"./source/images/favicon.jpg","bookmark":"./source/images/favicon.jpg","appleTouch":"./source/images/apple-touch-icon.jpg","appleTouchMore":{"120x120":"./source/images/apple-touch-icon.jpg","180x180":"./source/images/apple-touch-icon.jpg"}},"github-buttons":{"buttons":[{"user":"zhou415770319","repo":"iosKnowledges","type":"star","size":"small","count":true}]},"expandable-chapters-small":{},"sharing":{"qq":false,"all":["google","facebook","weibo","twitter","qq","qzone","linkedin","pocket"],"douban":false,"facebook":false,"weibo":false,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":false,"messenger":false,"line":false,"vk":false,"pocket":false,"google":false,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":false},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"anchors":{}},"theme":"default","author":"zhoufei","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"zhoufei-iosknowledges","language":"zh-hans","links":{"sidebar":{"我的博客":"http://www.feiyum.cn/index/"}},"gitbook":"3.2.3","description":"ios面试知识点总结"},"file":{"path":"md/neicun/4.5.md","mtime":"2019-05-03T14:40:51.311Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-05-03T14:51:39.741Z"},"basePath":"../..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../../gitbook/gitbook.js"></script>
    <script src="../../gitbook/theme.js"></script>
    
        
        <script src="../../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-github/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-github-buttons/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-donate/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-sharing-plus/buttons.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

